From: Jasper St. Pierre Date: Thu, 4 Apr 2013 20:59:39 +0000 (-0400) Subject: screenShield: Ensure we destroy background container widgets X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4369 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1ee88a2878b6e7484bc68a50d9ed8a0e105395a1;p=gnome-shell.git screenShield: Ensure we destroy background container widgets We may accidentally leak a widget when monitors change while locked otherwise. This is especially bad because we put a box-shadow on this widget. https://bugzilla.gnome.org/show_bug.cgi?id=697300 --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index f8bf3ccb7..d7e020b31 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -562,6 +562,7 @@ const ScreenShield = new Lang.Class({ this._bgManagers[i].destroy(); this._bgManagers = []; + this._backgroundGroup.destroy_all_children(); for (let i = 0; i < Main.layoutManager.monitors.length; i++) this._createBackground(i);